<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <!-- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> -->
    <script src="./node_modules/vue/dist/vue.js"></script>
  </head>
  <body>
    <div id="app">
      {{msg + "hello" + 123}}

      <div :class="className + 123">class</div>
    </div>
    <script>
      // {{}} -> 文本插值
      // v-bind -> 属性 -> 简写 :
      // 支持表达式

      const app = new Vue({
        el: "#app",
        data: {
          msg: "hello world",
          className: "blue",
        },
      });

      console.log(app);
    </script>
  </body>
</html>
